﻿using System.Collections.Generic;

namespace YunZuan.Models
{
    public class AllProductList
    {
        public bool result { get; set; }
        public List<InventoryInfoResult> rows_stocks { get; set; }
        public List<YunZuan.Models.Parcels> rows_parcels { get; set; }
        public List<YunZuan.Models.Ring> rows_inlays { get; set; }
        public List<YunZuan.Models.Gem> rows_gems { get; set; }
        public List<YunZuan.Models.Emerald> rows_emeralds { get; set; }
        public List<YunZuan.Models.PrimeGolds> rows_prime_golds { get; set; }
        public List<YunZuan.Models.InlaySettings> rows_inlay_settings { get; set; }

    }
    public class ProductResult
    {
        public int Successful { get; set; }
        public int Successful1 { get; set; }
        public int Failed { get; set; }
        public int Failed1 { get; set; }
        public int[] SuccessList { get; set; }
        public int[] FailList { get; set; }
        public int[] SuccessList2 { get; set; }
    }
    public class ErjiToYijiProductResult
    {
        public bool msgcode { get; set; }
        public ProductResult msginfo { get; set; }
    }
    /// <summary>
    /// 数据中心返回的结构
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class FromRemoteProducts<T>
    { 
        public bool msgcode { get; set; }
        public bool result { get; set; } 
        public RemoteProduct<T> msginfo { get; set; }
    }
    public class RemoteProduct<T>
    {
        public int records { get; set; } 
        public List<T> rows { get; set; }
        public bool result { get; set; }
    }
}
